package com.itheima.udp;

import java.io.IOException;
import java.net.*;

public class Client {
    public static void main(String[] args) throws IOException {
        DatagramSocket ds = new DatagramSocket();
        String s = "hello";
        byte[] bys = s.getBytes();
        DatagramPacket dp = new DatagramPacket(bys,bys.length, InetAddress.getByName("224.0.1.0"),10000);
        ds.send(dp);
        ds.close();
    }
}
